/*
package com.lkx;

import org.apache.commons.lang3.StringUtils;

*/
/**
 * ClassName: CustomException
 * Function:  TODO
 * Date:      2019-10-31 14:57
 * author     likaixuan
 * version    V1.0
 *//*

public class CustomException extends RuntimeException{
    private Integer code;
    private Object data;

    */
/**
     * 通用异常
     * @param resultEnum
     *//*

    public CustomException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    */
/**
     * 通用异常
     *
     * @param resultEnum
     *//*

    public CustomException(ResultEnum resultEnum, String extMsg) {
        super(StringUtils.join(resultEnum.getMsg(), ",", extMsg));
        this.code = resultEnum.getCode();
    }
    */
/**
     * 非通用异常
     * @param code 异常码
     * @param msg 异常信息
     *//*

    public CustomException(Integer code,String msg) {
        super(msg);
        this.code = code;
    }

    */
/**
     * 非通用异常带参
     * @param code 异常码
     * @param msg 异常信息
     *//*

    public CustomException(Integer code,String msg, Object data) {
        super(msg);
        this.code = code;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
*/
